package com.yzkj.siot.type;

public enum ApiType {

    SAVE_OR_UPDATE(1, "创建或更新"),

    DELETE(2, "删除"),

    READ(3, "查询"),

    UPDATE(4, "更新"),

    AUTH(5, "权限");

    private final int typeCode;

    private final String desc;

    ApiType(int typeCode, String desc) {
        this.typeCode = typeCode;
        this.desc = desc;
    }

    public String getDesc() {
        return this.desc;
    }

    public int getTypeCode() {
        return this.typeCode;
    }
}
